# coding=utf-8
'''
Created on 2013-12-30

@author: sunxiang
'''
from mongoengine import *
from model.tweet import Tweet

class TweetService(object):
    def get_tweet_by_user(self, user_uuid):
        return Tweet.objects.filter(user = user_uuid)
    
    def get_comment_by_tweet(self, tweet_uuid):
        return Comment.objects.filter(tweet = tweet_uuid)